#ifndef QCenovnik_H
#define QCenovnik_H

#include "qmybasewidget.h"
#include "ui_qCenovnik.h"
#include "qCenovnikwidget.h"


class QCenovnik : public QMyBaseWidget
{
	Q_OBJECT

public:
	QCenovnik(QWidget *parent = 0);
	~QCenovnik();
private:
	Ui::QCenovnikClass ui;
    QCenovnikWidget *CenovnikLista;
public:
    virtual void pressF4();
    virtual void pressEscape();
    void closeAllForm();
    void setInitSearchText(QString text);
	QStandardItemModel* getModel();
	virtual void refresh();

signals:
    void signCloseMyWidget();
    void eCloseKomintentiFromPriemnica();
    void eupdateNanigator(QWidget*, QWidget*);
public slots:
    void closeWLista();
    void callretCenovnikToDokument(QString& text, QString& textName, QString& textNameSaldo, QString& magTip);
};

#endif // QCenovnik_H
